<?php
/* @var $this SiteController */
/* @var $model LoginForm */
/* @var $form CActiveForm  */

$this->pageTitle=Yii::app()->name . ' - Login';
$this->breadcrumbs=array(
	'用户登陆',
);
?>
<div class="panel panel-box" style="overflow:hidden;">
    <div class="panel-heading">
    <div class="titleimage">
        <h3 class="panel-title panel-title-font">
            用户登陆
        </h3>
    </div>
    </div>
    <div class="panel-body" style="padding:25px" id="frontdatetable">
 

<div class="form" style="text-align:center">
<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'login-form',
	'enableClientValidation'=>true,
	'clientOptions'=>array(
		'validateOnSubmit'=>true,
	),
)); ?>
        <h3><b>用户登陆</b></h3>
	<p class="note">Fields with <span class="required">*</span> are required.</p>
    <div class="form-group">
        <?php echo $form->labelEx($model,'username'); ?>
		<?php echo $form->textField($model,'username'); ?>
		<?php echo $form->error($model,'username'); ?>
    </div>
    <div class="form-group">
		<?php echo $form->labelEx($model,'password'); ?>
		<?php echo $form->passwordField($model,'password'); ?>
		<?php echo $form->error($model,'password'); ?>
    </div>

    <div class="form-group">
		<?php echo $form->checkBox($model,'rememberMe'); ?>
		<?php echo $form->label($model,'rememberMe'); ?>
		<?php echo $form->error($model,'rememberMe'); ?>
    </div>
                <?php if (CCaptcha::checkRequirements()): ?>
                <div class="form-group">
                        <?php $this->widget('CCaptcha'); ?><br>
                        <?php echo $form->labelEx($model, 'verifyCode'); ?>
                        <?php echo $form->textField($model, 'verifyCode'); ?>
                    </div>
                    <?php echo $form->error($model, 'verifyCode'); ?>
                <?php endif; ?>

                <div class="footer">
                    <?php echo CHtml::submitButton('登陆', array('class' => 'btn btn-primary')); ?>
                    <a href="<?php echo yii::app()->baseUrl.'/user/Register'?>" class="btn btn-primary" style="margin-left:10px">注册</a>
                </div>

<?php $this->endWidget(); ?>
</div><!-- form -->
</div>
</div>
